<?php
// src/Kicker/MainBundle/Entity/Team.php
namespace Kicker\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="team")
 */
class Team
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\Column(name="player1", type="string", length=255)
     */
    private $player1;

    /**
     * @ORM\Column(name="email1", type="string", length=255)
     */
    private $email1;

    /**
     * @ORM\Column(name="player2", type="string", length=255)
     */
    private $player2;

    /**
     * @ORM\Column(name="email2", type="string", length=255)
     */
    private $email2;
    
    /**
      * @ORM\OneToOne(targetEntity="Document", cascade={"all"})
     * @ORM\JoinTable(name="team_logo", 
     *      joinColumns={@ORM\JoinColumn(name="team_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="document_id", referencedColumnName="id")}
     * )
     */
    private $logo;
    
    /**
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;


  

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set player1
     *
     * @param string $player1
     * @return Team
     */
    public function setPlayer1($player1)
    {
        $this->player1 = $player1;
    
        return $this;
    }

    /**
     * Get player1
     *
     * @return string 
     */
    public function getPlayer1()
    {
        return $this->player1;
    }

    /**
     * Set email1
     *
     * @param string $email1
     * @return Team
     */
    public function setEmail1($email1)
    {
        $this->email1 = $email1;
    
        return $this;
    }

    /**
     * Get email1
     *
     * @return string 
     */
    public function getEmail1()
    {
        return $this->email1;
    }

    /**
     * Set player2
     *
     * @param string $player2
     * @return Team
     */
    public function setPlayer2($player2)
    {
        $this->player2 = $player2;
    
        return $this;
    }

    /**
     * Get player2
     *
     * @return string 
     */
    public function getPlayer2()
    {
        return $this->player2;
    }

    /**
     * Set email2
     *
     * @param string $email2
     * @return Team
     */
    public function setEmail2($email2)
    {
        $this->email2 = $email2;
    
        return $this;
    }

    /**
     * Get email2
     *
     * @return string 
     */
    public function getEmail2()
    {
        return $this->email2;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Team
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set logo
     *
     * @param \Kicker\MainBundle\Entity\Document $logo
     * @return Team
     */
    public function setLogo(\Kicker\MainBundle\Entity\Document $logo = null)
    {
        $this->logo = $logo;
    
        return $this;
    }

    /**
     * Get logo
     *
     * @return \Kicker\MainBundle\Entity\Document 
     */
    public function getLogo()
    {
        return $this->logo;
    }
}